package com.sun.mongodb.core.config;

import com.sun.mongodb.core.listenner.SpringContextHolderListenner;
import com.sun.mongodb.core.util.SpringContextHolder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2021/9/6.
 */
@Configuration
public class ListennerConfig {

//    @Bean
//    public SpringContextHolderListenner initSpringContextHolderListenner(){
//        return new SpringContextHolderListenner();
//    }
    @Bean
    public SpringContextHolder initSpringContextHolder(){
        return new SpringContextHolder();
    }

}
